package org.spring.userservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.session.web.http.HeaderHttpSessionStrategy;
import org.springframework.session.web.http.HttpSessionStrategy;

@SpringBootApplication
@ComponentScan("org.spring.userservice")
@EnableEurekaClient
@EnableFeignClients
public class UserServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(UserServiceApplication.class, args);
	}
	
	
//	@Configuration
//	public class HttpSessionConfig {
//
//        @Bean
//        public LettuceConnectionFactory connectionFactory() {
//                return new LettuceConnectionFactory(); 
//        }
//        @Bean
//        public HttpSessionStrategy httpSessionStrategy() {
//                return new HeaderHttpSessionStrategy(); 
//        }
//	}
	
}
